<?php
$this->helpers->html->form('/'.$this->name.'/add/'.$this->data[$this->name][type]);
$this->helpers->htmlx->MenuText1(LANG_URL_DELEGATION, "add.gif");
	echo "<table class='eva'>";
	$this->helpers->htmlx->hidden('user_login_from', $this->data[$this->name][user_login_from]);
	$this->helpers->htmlx->hidden('type', $this->data[$this->name][type]);	
	$this->helpers->htmlx->hidden('url', $this->data[$this->name][url]);
	$this->helpers->htmlx->selectBoxFastSearchRow(LANG_TO_USER, 'user_id_to',$this->data[users], $this->data[$this->name][user_id_to]);
	if($this->data[$this->name][type]=='roles')
    $this->helpers->htmlx->comboBoxRow(LANG_ROLES.'*', 'roles[]',$this->data[user_roles], $this->data[roles],'multiple size="5" class="combobox2"');
    else if($this->data[$this->name][type]=='url')
    $this->helpers->htmlx->inputTextRow(LANG_URL, '', $this->data[$this->name][url],'disabled="disabled"');
    
    $this->helpers->htmlx->inputDateRow(LANG_START_DATE, 'datetime_from', date('d-m-Y H:i', strtotime($this->data[$this->name][datetime_from])));
    $this->helpers->htmlx->inputDateRow(LANG_END_DATE, 'datetime_to', date('d-m-Y H:i', strtotime($this->data[$this->name][datetime_to])));
echo "</table>";
$this->helpers->htmlx->submitTable('submit', $this->name);
echo "</form>";

?>
	  	  